package ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.authorizeRFCPanel.authorizeRFCPanelSubs.listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.controller.authoriseRFC.RejectRFCThread;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.authorizeRFCPanel.authorizeRFCPanelSubs.AuthoriseRFCDialog;

public class RejectButtonListener implements ActionListener{
	
	private AuthoriseRFCDialog authoriseRFCDialog;
	private RejectRFCThread rejectRFCThread;
	
	public RejectButtonListener(AuthoriseRFCDialog authoriseRFCDialog){
		this.authoriseRFCDialog = authoriseRFCDialog;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		
		this.rejectRFCThread = new RejectRFCThread(authoriseRFCDialog);
		this.authoriseRFCDialog.getProgress().setVisible(true);
		this.rejectRFCThread.start();
		
	}

}
